gh-149689: add missing error checks in Parser/action_helpers.c#149710
Conversation
Documentation build overview
154 files changed ·
|
| @@ -1416,6 +1432,9 @@ expr_ty | |||
| _PyPegen_template_str(Parser *p, Token *a, asdl_expr_seq *raw_expressions, Token *b) { | |||
|
|
|||
| asdl_expr_seq *resized_exprs = _get_resized_exprs(p, a, raw_expressions, b, TSTRING); | |||
| if (!resized_exprs && PyErr_Occurred()) { | |||
There was a problem hiding this comment.
The && PyErr_Occurred() is redundant here, but is not hurting either.
2285902 to
9c719d8
Compare
|
Thanks @KowalskiThomas for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
|
GH-152640 is a backport of this pull request to the 3.15 branch. |
|
Sorry, @KowalskiThomas and @pablogsal, I could not cleanly backport this to |
|
GH-152641 is a backport of this pull request to the 3.14 branch. |
|
Please don't forget about backports. |
|
I had definitely forgotten the conflicting backport, thanks for reminding me. Opened #153763. |
Fixes #149689.
Parser/action_helpers.c#149689